package org.springblade.pm.feign;

import org.springblade.core.launch.constant.AppConstant;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.HashMap;
import java.util.List;

/**
 * @author LK
 * @version 1.0.0
 * @Title: IXmglProjectClient.java
 * @Description: TODO
 * @date 2020/3/31 15:38
 */
@FeignClient(
	value = AppConstant.APPLICATION_NAME_PREFIX + "org/springblade/pm",
	fallback = IXmglProjectClientFallback.class
)
public interface IXmglProjectClient {

	String API_PREFIX = "/xmglproject";

	/**
	 * 用户项目列表
	 *
	 * @param bladeUser
	 * @return
	 */
	@GetMapping(value = API_PREFIX + "/userProjectList")
	R<List<HashMap<String, Object>>> getProjectListByRoleAndDept(BladeUser bladeUser);
}
